package jsyf.oa.dao.device;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.device.DeviceTransportCompanyEntity;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;

@Repository
public class DeviceTransportCompanyDao extends BaseDao {
    public DeviceTransportCompanyDao() {
        super.iBaseEntity = new DeviceTransportCompanyEntity();
    }

    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return JSON.toJavaObject(json, DeviceTransportCompanyEntity.class);
    }

}
